package python

import (
	"context"
	"gitee.com/kmyss/gf-ex/yscmd"
	"gitee.com/kmyss/ys-cli/internal/cmd/python/setup"
)

type Builder struct {
	yscmd.CommandBuilderCore
}

func (b *Builder) Init(ctx context.Context) {
	b.CommandBuilderCore.Init(ctx)
	b.C.Use = "python"
	b.C.Short = "python 开发中常常使用到的功能..."
	b.C.Long = `
    - 初始化一个 venv`

	b.addCommand()
}

func (b *Builder) addCommand() {
	b.SetChildCommands(
		&setup.Builder{},
	)
}

func Python(ctx context.Context) *yscmd.Command {
	c := &Builder{}
	c.Init(ctx)
	return c.Command()
}
